<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
	ob_start();
	session_start();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="styles/layout.css" type="text/css" />
<!--<script type="text/javascript" src="scripts/jquery-1.4.1.min.js"></script>-->
<script type="text/javascript" src="js template/jquery-1.11.0.js"></script>
<script type="text/javascript" src="scripts/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="scripts/jquery.timers.1.2.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview.2.1.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview.setup.js"></script>
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<link type="text/css" href="css template/bootstrap.css" rel="stylesheet"/>
<link rel="stylesheet" type="text/css" href="style sources/ThemHoatDong.css" />
<script src="script sources/ThemHoatDong.js"></script>
<script src="textarea plugin/ckeditor.js"></script>
<title>Thêm hoạt động</title>
</head>
<body id="top">
	<?php $hdkt ="active"; include("header.html");?>	
	<div class="wrapper">		
		<div class="container">
			<div><p style='color:red'><?php if(isset($_GET['result'])) echo $_GET['result']; ?></p></div>
			<form  action="php sources/ThemHoatDong.php" method="post">
				<fieldset>					
						<table class="bangTHD">
						<tr class='legend'>
							<td colspan="2" align="center" >Thêm hoạt động</td>
						</tr>
					  <tr>
							<td id="firstcol">Tên hoạt động</td>
							<td><textarea type="text" id="tenHD" name="tenHD" required  onchange="checkTenHD(this)"/></textarea></td> <!-- required k duoc bo trong-->
						</tr>
						<tr>
							<td id="firstcol">Ngày diễn ra </td>
							<td><input type="date" id="ngayHD" name="ngayHD" required/></td>
						  </tr>
						<tr>
							<td id="firstcol">Kinh phí (VND)</td>
							<td><input type="text" id="kinhphi" name="kinhphi" required pattern="\d{1,20}" onchange="checkKP(this)"  /></td>
						 </tr>
						 <tr>
							<td id="firstcol">Kinh phí dự trù (VND)</td>
							<td><input type="text" id="kinhphidt" name="kinhphidt" required pattern="\d{1,20}" onchange="checkKP(this)"  /></td>
						 </tr>
						 <tr>
							<td id="firstcol">Cấp độ</td>
							<td><select id='capdo' name='capdo'><option value='Liên Chi'>Liên chi</option><option value='Chi Hội'>Chi hội</option></select></td>
						 </tr>
						<tr>
							<td valign="top" id="firstcol">Nôi dung hoạt động</td><td></td>
						</tr>
						<tr>
							<td colspan="2"><textarea class="ckeditor" id="noidungHD" name="noidungHD" rows="20" cols="200"></textarea></td>
						</tr>
						<tr>
							<td colspan="2" align="right" valign="bottom"><button type="submit" value="thêm" />Thêm</button></td>						   
						 </tr>
						</table>						
				</fieldset>				
			</form> 
		</div>
	</div>
</body>
</html>
